package cn.tedu.spring.eg2;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestProduct {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext("cn.tedu.spring.eg2");
        Product product = ac.getBean(Product.class);
        System.out.println(product);
    }
}
